<?php

namespace App\Http\Requests\Admin\Collection;
use App\Http\Requests\Request;

class addWorksRequest extends Request {
    public function authorize(){
        return true;
    }
    public function rules(){
        $input = $this->all();
        return [
            'works_name'=>'required'
        ];
    }
    public function messages(){
        return [
            'works_name.required'=>'作品名称必须填写'
        ];
    }
}